import 'package:get/get.dart';
import '../withdraw/withdraw_controller.dart';

class SelectBankController extends GetxController {
  var bankList = <BankCardInfo>[].obs;

  @override
  void onInit() {
    super.onInit();
    // 示例数据
    bankList.value = [
      BankCardInfo('中国银行', '5161'),
      BankCardInfo('中国银行', '5163'),
    ]; // 可根据实际情况加载
  }

  void selectBank(BankCardInfo bank) {
    Get.back(result: bank);
  }
}
